import request from '@/utils/request'

export function page(data) {
  return request({
    url: `/rootnode/page`,
    method: 'post',
    data
  })
}


export function saveNode(data) {
  return request({
    url: `/rootnode/saveNode`,
    method: 'post',
    data
  })
}

export function getById(id) {
  return request({
    url: '/rootnode/getById/' + id,
    method: 'get'
  })
}

export function deleteNode(id) {
  return request({
    url: '/rootnode/delete/' + id,
    method: 'delete'
  })
}

export function getRootAllNotHasCerNodes() {
  return request({
    url: '/rootnode/getAllNotHasCerNodes',
    method: 'get'
  })
}